<?php

namespace app\api\controller;

use app\common\controller\Api;
use app\admin\model\general\Pay;
use think\Db;


/**
 * 杂项
 */
class Sundry extends Api
{

    // 无需登录的接口,*表示全部
    protected $noNeedLogin = ['*'];
    // 无需鉴权的接口,*表示全部
    protected $noNeedRight = ['*'];

    /**
     * 充值规则
     *
     * @ApiMethod (GET)
     */
    public function pay()
    {
        $data = Pay::order('money')->select();
        $this->success('OK',$data);
    }

    /**
     * VIP介绍
     *
     * @ApiMethod (GET)
     */
    public function vip()
    {
        $data = Db::table('vip')->order('money', 'desc')->select();

        $this->success('OK',$data);
    }
}
